Archive for March, 2008

tinymce and Windows Media

Wednesday, March 26th, 2008

I submitted this bug to TinyMCE

.. but I thought I’d repost it just to be sure the word got out…

Description of problem: Windows Media will not play on the latest version of TinyMCE found here in IE, however it works in FireFox

Steps to reproduce:
1. in IE7, go to that webpage
2. click on Embed Media
3. change the type to Windows Media
4. select sample.avi under the Media folder
5. click ok and Submit

the generated code contains the line:

<param name=”src” value=”tinymce/jscripts/tiny_mce/plugins/imagemanager/files/media/sample.avi” />

this is the incorrect parameter for the CSID
6BF52A52-394A-11D3-B153-00C04F79FAA6 .. the parameter is URL not SRC.. so

<param name=”url” value=”tinymce/jscripts/tiny_mce/plugins/imagemanager/files/media/sample.avi” />

works

the fix….. in editor_plugin.jschange

if(n==’src’&&p[n].indexOf(‘://’)!=-1&&mt==’application/x-mplayer2′)

to

if(n==’src’&&mt==’application/x-mplayer2′)

this will always insert the URL parameter for Windows Media

mailman cleanse.py to use the sender’s name and the list’s email address (for yahoo/att relays!)

Monday, March 24th, 2008
# Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA. 

"""Cleanse certain headers from all messages.""" 

from email.Utils import formataddr, parseaddr 

from Mailman.Logging.Syslog import syslog
from Mailman.Handlers.CookHeaders import uheader 

def process(mlist, msg, msgdata):
    # Always remove this header from any outgoing messages.  Be sure to do
    # this after the information on the header is actually used, but before a
    # permanent record of the header is saved.
    del msg['approved']
    # Remove this one too.
    del msg['approve']
    # Also remove this header since it can contain a password
    del msg['urgent']
    # We remove other headers from anonymous lists
    if mlist.anonymous_list:
        syslog('post', 'post to %s from %s anonymized',
               mlist.internal_name(), msg.get('from'))
        realname, email = parseaddr(msg['from'])
        del msg['from']
        del msg['reply-to']
        del msg['sender']
        # Hotmail sets this one
        del msg['x-originating-email']
        msg['From'] = formataddr((realname, mlist.GetListEmail()))
        msg['Reply-To'] = mlist.GetListEmail()
    # Some headers can be used to fish for membership
    del msg['return-receipt-to']
    del msg['disposition-notification-to']
    del msg['x-confirm-reading-to']
    # Pegasus mail uses this one... sigh
    del msg['x-pmrqc']

blackjack on tmobile

Thursday, March 13th, 2008

yesterday was pretty slow around work so I spent the whole day playing with this old blackjack of Ann’s and making it work on tmobile.

first I called cingular and got the unlock code (I did this a few days ago actually) and walked through those instructions .. so that unlocked the phone

then I found that it had an upgrade to WM6.. so that’s awesome.

Then I had to get Internet set up.. after much confusion, the right link is here: http://www.howardforums.com/showthread.php?t=576307

The key.. for the $5.99 plan you only want 1 connection to GPRS.. goes to The Internet and uses the APN wap.voicestream.com .  Then the proxy connects from The Internet to the WAP Network and uses 216.155.165.50:8080 and the type is HTTP (not WAP).  Internet explorer settings are uncheck automatically detect settings and you are connecting to a WAP Network.. that way, see, it uses the proxy… if you have a WAP Network connection it’ll use THAT and bypass the proxy, which won’t load pages.

then MMS settings:

Profile Name: PictureMessaging
MMSC URL: http://216.155.174.84/servlets/mms
Proxy: Checked
Address: 216.155.165.50
Port: Works using either 8080 or 9201 for me. 8080 is from the T-Mobile web page

So that’s that… it works.  I might commandeer one for myself :)