Cannot Open Internet Site

March 18th, 2008

Internet Explorer Cannot open the Internet Site - Operation Aborted.

I wrestled with this message yesterday. It seems specific to Internet Explorer. Many have experienced it using the Google Map API, but mine was using the Squeezebox for Joomla.

The example used domready to avoid the problem of trying to append the body before it was ready in the browser.

For me, the fix was to move the script to the bottom of the Body for now. This is a bothersome problem that really seems to be a timing issue in IE.

Valid e-mail addresses

February 6th, 2008

I filed a bug with Joomla about not accepting email addresses like testthis+symbol@example.com during install. My explanation was "e-mail systems accept this." The initial response was "just because some systems accept it, doesn't mean it is valid."

True enough. Then again, if you restrict an email address, it doesn't mean that restriction is valid.

I'm usually more specific in reporting bugs, but frankly I was ignorant as to whether or not it was valid when I filed the bug.

Plus symbols are valid.

RFC 822, 3696, 2822 and 2821 all refer to the standards for e-mail addressing. RFC 822 was passed in 1982.

3696 summarizes:

"Without quotes, local-parts may consist of any combination of alphabetic
characters, digits, or any of the special characters

! # $ % & ' * + - / = ? ^ _ ` . { | } ~

period (".") may also appear, but may not be used to start or end the
local part, nor may two or more consecutive periods appear."

Some good blog entries in plain English:
Email Address Format Myths
I Knew How To Validate An Email Address Until I Read The RFC
How to Find or Validate an Email Address

I have seen a lot of one line e-mail validators. If you want to see how off these are, check out Paul Warren's partial example.

Joomla 1.5

January 22nd, 2008

Joomla 1.5 is stable and ready to go. This includes a new framework which they hope others will build applications on.

The early Blogger API was introduced a couple of years ago into Joomla, in posts 1 and 2 on the subject. There was also some recent excited discussion on the forum. Very little information for current functionality though.

I spent a little time looking at the existing functionality and this is what I was able to figure out. Using Ruby. Hopefully, I'll have the chance to flesh out one of the APIs or the existing one.

require 'xmlrpc/client'

# Sets server to my site
server = XMLRPC::Client.new2('http://familia.lizvazquez.com/xmlrpc/index.php')

##  function getUserBlogs($appkey, $username, $password)
##  Errors out - irrelevant

# result = server.call('blogger.getUserBlogs','unused_appkey','admin','password')
# puts result 


##  function getUserInfo($appkey, $username, $password)
result = server.call('blogger.getUserInfo','unused_appkey','admin','password')
puts result

##  function getPost($appkey, $postid, $username, $password)

result = server.call('blogger.getPost','unused_appkey','1','admin','password')
puts result


##  function editPost($appkey, $postid, $username, $password, $content, $publish)

result = server.call('blogger.editPost','unused_appkey','2','admin','password','<titel>new content</title>content',true)
puts result

## XMLRPC::FaultException: Post check failed 2


##  function deletePost($appkey, $postid, $username, $password, $publish)
result = server.call('blogger.deletePost','unused_appkey','1','admin','password',false)
puts result

#Missing return value initially
#no post afterwards



## function getRecentPosts($appkey, $blogid, $username, $password, $numposts)
result = server.call('blogger.getRecentPosts','unused_appkey','unused_blogid','admin','password',9)
puts result


##  function getTemplate($appkey, $blogid, $username, $password, $templateType)
## not implemented


##  function newPost($appkey, $blogid, $username, $password, $content, $publish)
result = server.call('blogger.newPost','unused_appkey','unused_blogid','admin','password','<title>Test Title4</title>test body<strong>bold</strong>', false)
puts result