Thursday

The certificate for omega.contacts.msn.com could not be validated. The certificate chain presented is invalid.


2010-11-24 Update: Please download latest version of Pidgin, that has this problem fixed , no additional steps required.


Here are 3 ways to fix this error:
sorted from easier to harder,solution #1 works in most cases .
If it doesn't you can try solution #2 or solution #3 , this will fix problem for sure.

solution #1(easiest, try it first )

remove file :
c:\Documents and Settings\[your-username]\Application Data\.purple\certificates\x509\tls_peers\contacts.msn.com

In Win 7 the path is: C:\Users\[UserID]\AppData\Roaming\.purple\certificates\x509\tls_peers

or for linux :
~.purple/certificates/x509/tls_peers/contacts.msn.com
and Pidgin will load latest certificate.

Update: it also can be fixed by deleting certificate from Pidgin menu Tools/Certificate.


Solution #2: (if #1 is not working)

a.Download this file,

b. delete the .txt extension, so that you end up with omega.contacts.msn.com only,

c. copy the file to your c:\Documents and Settings\[your-
username]\Application Data\.purple\certificates\x509\tls_peers
folder


Solution #3: (similar to solution #2 but importing certificate directly from omega.contacts.msn.com)

a. open https://omega.contacts.msn.com/

b. On the URL bar, click on the security lock (usually just in front of the URL). Click on the certificate information.

c. Go to the Detail tab and click the “Export” button. Save the file as “omega.contacts.msn.com” (without the quotes).




d. Copy and paste this file to
“/home/your-username/.purple/certificates/x509/tls_peers/omega.contacts.msn.com”. When prompted, select “Replace” to replace the existing file.That’s it. Open your Pidgin and the SSL certificate error will be gone.

Friday

The element has invalid child element. List of possible elements expected: .

Error:The element 'Schedule' has invalid child element 'RecurrenceRule'. List of possible elements expected: 'Occurring'.

To fix this XSD problem:
Theory:

XSD gives 3 indicators: <xs:all>, <xs:sequence>, and <xs:choice>.

xs:all allows the specified child elements to appear (or not) in any order in the containing element... except they can only appear once.

xs:sequence requires the specified child elements to appear in the order they are given

and xs:choice requires that only one of the specified child elements appears, but it can appear any number of times.


so I just changed tag from <xs:sequence> to <xs:all> and it fixed problem.

orginal code

   
<xs:element name="Requirement" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string" minOccurs="0" />
<xs:element name="Duration" type="xs:int" minOccurs="0" />
<xs:element name="Occurring" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>


changed code

   
<xs:element name="Schedule" minOccurs="0">
<xs:complexType>
<xs:all>
<xs:element name="Name" type="xs:string" minOccurs="0" />
<xs:element name="Duration" type="xs:int" minOccurs="0" />
<xs:element name="Occurring" type="xs:int" minOccurs="0" />
</xs:all>
</xs:complexType>
</xs:element>

Monday

how to keep ssh tunnel alive

To keep ssh session alive Create ssh_config file in your home folder with this line:
        
ServerAliveInterval 5

This will keep ssh alive and open.

remote logoff user windows

1.Use quser command to load list of sessions

  
C:>quser
USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME
johndoe ica-tcp#966 10 Active 7 7/31/2008 3:04 PM
averagejoe ica-tcp#969 1 Active 9 7/31/2008 3:30 PM


2.Logoff session you need:
  
C:>logooff 2


focus popup window

it can be done by this line : if (window.focus) { newwindow.focus() }
Here is an example:
  
<script type="text/javascript">
function OpenNote(noteid,t) {
var w1 = 550;
var h1 = 500;

var left = window.screenLeft + (screen.width / 2) - w1; //
var top = window.screenTop + (screen.height / 2) - h1; //

var newwindow = window.open('TransactionsNotes.aspx?i=<%=AccountTransactionId%>&u=<%=UserId%>&n=' + noteid + "&t=" + t, '_note_', 'top=' + top + ',left=' + left + ',width=' + w1 + ',height=' + h1 + ',location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no');
if (window.focus) { newwindow.focus() }
}
</script>


imagemagic add text to image

rem different types of text annotations on existing images rem cyan yellow orange gold rem -gravity SouthWest rem draw text and anno...