Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6
This is the forum to discuss the Wrox book Professional Ajax, 2nd Edition by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780470109496
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 2nd, 2007, 04:09 PM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 15 FooReader.Net Question

The FooReader application works great on a PC but not on a Linux machine. The load image keeps showing but nothing else happens. Only the Yahoo xml file was created, but not the other xml files.
No feeds are displayed.
Reply With Quote
  #2 (permalink)  
Old April 3rd, 2007, 09:01 AM
jmcpeak's Avatar
Wrox Author
Points: 467, Level: 7
Points: 467, Level: 7 Points: 467, Level: 7 Points: 467, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , Texas, USA.
Posts: 87
Thanks: 0
Thanked 18 Times in 17 Posts
Default

Howdy, Maxint40.

What code version are you using? PHP, .NET, or JSP?

------------------------
Jeremy McPeak
Author of:
Professional Ajax, 2nd Edition
Beginning JavaScript, 3rd Edition

http://www.wdonline.com
Reply With Quote
  #3 (permalink)  
Old April 3rd, 2007, 12:41 PM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm using PHP.

Quote:
quote:Originally posted by jmcpeak
 Howdy, Maxint40.

What code version are you using? PHP, .NET, or JSP?

------------------------
Jeremy McPeak
Author of:
Professional Ajax, 2nd Edition
Beginning JavaScript, 3rd Edition

http://www.wdonline.com
Reply With Quote
  #4 (permalink)  
Old April 4th, 2007, 04:52 PM
jmcpeak's Avatar
Wrox Author
Points: 467, Level: 7
Points: 467, Level: 7 Points: 467, Level: 7 Points: 467, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , Texas, USA.
Posts: 87
Thanks: 0
Thanked 18 Times in 17 Posts
Default

I don't have a linux box, so I can't say how exactly to fix your issue. But we can start by looking at what xmlproxy.php says.

In your browser, go to http://yourserver/yourfooreaderfolde...nline.net/rss/

What is displayed in your browser window? Better yet, what's the source code of the page?

------------------------
Jeremy McPeak
Author of:
Professional Ajax, 2nd Edition
Beginning JavaScript, 3rd Edition

http://www.wdonline.com
Reply With Quote
  #5 (permalink)  
Old April 4th, 2007, 06:59 PM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Internet Explorer cannot display this feed
   This feed contains code errors.

Here is the source - I guess the text before the
xml declaration is the problem:
string(21821) "<?xml version="1.0"?><rss version="2.0"><channel><title>NCZOnline - The Official Web Site of Nicholas C. Zakas</title><link>http://www.nczonline.net</link><description>The personal blog of Nicholas C. Zakas</description><language>en-us</language><item><title>Observers shouldn#039;t observe themselves</title><link>http://www.nczonline.net/archive/2007/4/436</link><description><![CDATA[<p>I love design patterns, they make life so much easier. Particularly, I love the <a href="http://en.wikipedia.org/wiki/Observer_pattern" rel="external" title="Observer pattern">observer pattern</a>. If you use JavaScript, you're already familiar with this pattern: events. Events are how we tie functionality to a page and create interactions for the user. You can even create your own observer objects using JavaScript libraries such as <a href="http://developer.yahoo.com/yui/" rel="external" title="Yahoo! User Interface Library">YUI</a> or even my own <a href="http://www.nczonline.net/downloads/" rel="internal" title="Downloads">zEvents</a>. The problem is in how I've seen them implemented.</p> <p>I'll say this as clearly as possible: <strong>observers shouldn't observe themselves</strong>. An event indicates that something of importance will occur or has occurred. There is some default behavior that is of interest to observers and the event is the way to broadcast that this important moment in processing has occurred. The default behavior should <em>never</em> be executed by an observer. Let me state this as a concrete example: if your object publishes a load event, you shouldn't assign an event handler that does the loading. The default behavior should be there regardless of the event. In fact, you should be able to remove all events and have the object still perform its duties appropriately.</p> <p>Again, I love the observer pattern and I'm a big fan of creating objects with custom events (loosely coupled objects rule!). But let's have some sanity around events. Let the important moments be just those, and make sure your object works appropriately without any observers subscribing to its events.</p>]]></description><pubDate>Tue, 03 Apr 2007 00:00:00 EDT</pubDate></item><item><title>Too much April Fool#039;s</title><link>http://www.nczonline.net/archive/2007/4/435</link><description><![CDATA[<p>Now, I'm just as fun-loving as the next software engineer, but I was really irked this April 1st when my syndicated newsreader was flooded with April Fool's jokes from just about every major source of credible news I typically go to:</p>[list]<li>Surfin' Safari: <a href="http://webkit.org/blog/100/webkit-shutting-down/" rel="external" title="WebKit shutting down">WebKit Shutting Down</a></li> <li>Google Blog: <a href="http://googleblog.blogspot.com/2007/04/project-teaspoon.html" rel="external" title="Project Teaspoon">Project Teaspoon</a></li> <li>Ajaxian: <a href="http://ajaxian.com/archives/the-new-timers" rel="external" title="The New Timers">The New Timers</a></li> </ul> <p>Perhaps I'm just getting disgruntled in my advanced age, but I find this really annoying. It's one thing to have an April Fool's joke (key: typically jokes say somewhere, &quot;April Fool's!!!!&quot;) but it's another thing to mix this stuff in with other, legitimate news items. In an age when so much online content is spam, I've learned to trust certain sites for my news. When they go and do this, it really makes me stop and question.</p>]]></description><pubDate>Mon, 02 Apr 2007 00:00:00 EDT</pubDate></item><item><title>WrestleMania!!!</title><link>http://www.nczonline.net/archive/2007/4/434</link><description><![CDATA[<p>It's been a while since I purchased a wrestling pay-per-view because they mostly have been disappointments over the past couple years. This year I decided, what the heck, I'm gonna get WrestleMania and invite some friends over to watch. What resulted was a great time with a small bunch of people: <a href="http://www.rolandblanton.com" rel="external" title="Roland Blanton">Roland</a> (my former boss), <a href="http://www.stevesapartment.com/" rel="external" title="Steve's Apartment">Steve</a> (my co-worker), Matt (of <a href="http://developer.yahoo.com/yui" rel="external" title="Yahoo! User Interface Library">YUI</a> fame), <a href="http://www.dustindiaz.com" rel="external" title="/with Imagination">Dustin</a>, and my next door neighbor, Abbey. And there you have it, my first party in California. :)</p> <p>I have to say, I thought the show was pretty good, probably one of the better ones I've seen recently. I was shocked they started with the ladder match, since I thought that would be pretty good. It definitely had some nice spots, and the crowd over my place was entertained, but I thought the ending was a little anti-climactic. I wonder if Edge really did get hurt and that changed the ending.</p> <p>The Undertaker winning against Batista was a lot better match than I expected. The crowd in my apartment was definitely marking out (all Undertaker fans) and when he got the pin, there was a loud shout, &quot;yeah!&quot; I'm so glad they didn't ruin Taker's win streak. Batista is good, but I don't think he's worthy of upsetting the legend. One sign said it all: If Batista wins, we riot.</p> <p>The hair versus hair match was very entertaining, but rather predictable. You knew at some point Austin was gonna get involved and cause some trouble. You knew that there was no way Trump was going to have his head shaved. Really it was still an entertaining match. And McMahon doesn't look bad with his head shaved.</p> <p>The last match between John Cena and Shawn Michaels was also much better than I had expected. Let's face it, Cena has put up some real stinker matches. This was his first legitimate championship performance, and I don't think it would have been so without the help from Michaels. HBK has had so many great matches, which is why I figured that this would be a legitimizing win for Cena rather than the beginning of a new title reign for Michaels. This match makes Cena look like a good champion, and it was a good win despite the fan reaction.</p> <p>Overall, I thought the show was good. My main disappointments were that there were no tag team championships on the line and no cruiserweight match. I felt like the young guys should have been more involved, but overall, the night felt satisfying for this long-time wrestling fan.</p>]]></description><pubDate>Mon, 02 Apr 2007 00:00:00 EDT</pubDate></item><item><title>Surviving an interview with me</title><link>http://www.nczonline.net/archive/2007/3/433</link><description><![CDATA[<p>I've been meaning to post this for a while, but it's only now that I've finally decided to do it. So you've applied for a job and you see that I'm on the list of people interviewing you. You're already a little nervous because, let's face it, interviews are uncomfortable no matter what. I'm not a tough interviewer, but there are some things you really need to do when in a room with me to make sure I don't write you off.</p>[list]<li><strong>Answer the question.</strong> When I ask you a question, make sure you answer it. I've sat in too many interviews where I ask questions and the candidate talks around the topic but never actually answers the question. I know you're nervous, and some blabbering is expected, but seriously, come back to the point. It's not an opportunity for you to share a cute anecdote about your cat, I actually do want the answer. If you're not sure what I'm asking for, ask me to clarify, I have no problem repeating questions or trying to ask them in a different way.</li> <li><strong>Tell me what you don't know.</strong> If I ask you something that's out of your realm of knowledge, say so. I don't expect you to be an encyclopedia. Once I know that you don't know how to answer, I can more fairly evaluate you. You won't get to avoid the question, but I'll give you hints to see if your problem-solving skills can take you the rest of the way.</li> <li><strong>Don't give up.</strong> When in an interview with me, never give up. If you're following my rules so far, you got a question you didn't know how to answer and you told me so. But now, don't give up! I'm giving you hints to get the correct answer; don't stop me every step and say, &quot;I really don't know.&quot; In our profession, you'll be met with challenges that you don't have an immediate solution for, will you give up then? I need to know you're able to work through a problem and don't get so frustrated that you just throw in the towel.</li> <li><strong>Don't assume trick questions.</strong> Certain companies have created a culture of fear around interviews where they ask you off-the-wall riddles and trick questions. I don't subscribe to that way of interviewing. All of my questions have answers, most of them have many different correct answers, and I promise that I will never ask you a trick question. It demeans you and it's useless to me. Assume each question I ask has at least one correct answer.</li> <li><strong>Back up your statements.</strong> If you say something hinting at a solution or some knowledge you have, be prepared to discuss it. If I ask you a question and you say something like, &quot;well, since IE doesn't support CSS3...&quot;, then you better be prepared to tell me what you'd do if IE did support CSS3.</li> <li><strong>Don't say you're an expert.</strong> This probably goes for most interviews, but especially with me. I never ask you to rank your skills on a scale of 1 to 10, so don't off that information to me. As soon as you put yourself into the &quot;expert&quot; category, I'm going to start you off with tougher questions. I've yet to meet someone who introduced themselves as an expert who actually was. Experts don't need to tell you that they're experts, they show you.</li> <li><strong>Don't try to impress me.</strong> If I want to know something, I'll ask. I know the information I need to get while in the interview, and any time I hear someone say, &quot;want to see a neat trick?&quot; or something of the same flavor, I start to tune out. Just answer what I ask as best you can.</li> <li><strong>Be enthusiastic.</strong> If you're applying for a job working with me, make sure I want to work with you. The best way to do that is to be enthusiastic; show a willingness and eagerness to learn. Be able to talk about the product, the company, why this is the job you want. And pay close attention on that last one, I don't want to hear about all the reasons your current job sucks. It's certainly okay to explain the opportunities that you haven't received in your current or past position, but present it as how you're looking forward to growing and why this is the best place for you to do that.</li></ul> <p>Really, I do hope that anyone interviewing with me in the future will read this. I <em>want</em> you to do well when I interview you, I really, really do. Just avoid these common pitfalls and be yourself. Who knows, maybe we'll end up working together sometime soon.</p> <p><strong>P.S.</strong> The <a href="http://my.yahoo.com" rel="external" title="My Yahoo!">My Yahoo!</a> team is hiring. If you're a talented software engineer with a passion for innovation and for <a href="http://www.yahoo.com" rel="external" title="Yahoo!">Yahoo!</a> in general, <a href="http://www.nczonline.net/contact/" rel="internal" title="Contact me">contact me</a> and let's talk.</p>]]></description><pubDate>Tue, 27 Mar 2007 00:00:00 EDT</pubDate></item><item><title>Pain with inline-block (again)</title><link>http://www.nczonline.net/archive/2007/3/432</link><description><![CDATA[<p>Once again I find myself banging my head against the wall thanks to Firefox's lack of support for <code>inline-block</code> elements. At least Internet Explorer let's you set the display of an element to <code>inline-block</code> if it's an <code>inline</code> element by default (such as <code>span</code>, but won't work on <code>div</code>). Opera and Safari both supports <code>inline-block</code>, so why is it that Firefox doesn't? (Rhetorical, see my original post, <a href="http://www.nczonline.net/archive/2006/10/382" rel="internal" title="Pain with inline-block">Pain with inline-block</a>)</p> <p>In various situations I've used different Firefox extensions to work around this issue, but none of these work 100% of the time. The different things I've tried are:</p>[list]<li><strong><code>-moz-inline-box</code></strong> - similar to <code>inline-block</code> in that elements appear next to each other on the same line. Different in that you have no control over the text flow inside, so you have to add a <code>block</code> element inside of each one. Oh, and if your browser is in standards mode, it adds mysterious white space at the top. I haven't been able to figure out where it comes from, since it seems to happen only in some instances, but it's really frustrating.</li> <li><strong><code>table</code></strong> - this works well when your element will be the only one on a row and you need it to act like it's <code>inline-block</code>. Problem is that multiple instances wrap one under the other as if they were <code>block</code>.</li> <li><strong><code>table-cell</code></strong> - works when you need multiple instances on the same line. Caveat is that you need to only have these types of elements on the same line...and they behave like table cells, so widths can be a challenge to work with.</li></ul> <p>I still don't understand why <code>inline-block</code> is supported in everything but Firefox. For a browser that prides itself on being standards-compliant, it seems like there are some really basic things that are missing (hey, where's the <code>script</code>'s <code>defer</code> attribute?).</p>]]></description><pubDate>Wed, 21 Mar 2007 00:00:00 EDT</pubDate></item><item><title>What do you love/hate about Professional JavaScript?</title><link>http://www.nczonline.net/archive/2007/3/431</link><description><![CDATA[<p>Will all the excitement over the release of <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fww w.amazon.com%2FProfessional-Ajax-2nd-Nicholas-Zakas%2Fdp%2F0470109491%2F&amp;tag=nczonline-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=932 5" rel="external" title="Professional Ajax, Second Edition">Professional Ajax, 2nd Edition</a>, I didn't want people to think that I was leaving my first book, <a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&amp;tag=nczonline-20&amp;camp=1789&amp;creative=9325&amp;path=http%3 A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F0764579088% 2F" rel="external" title="Professional JavaScript for Web Developers">Professional JavaScript for Web Developers</a> behind. In fact, I'm now going through it to figure out what should and shouldn't be in a second edition. To aid in this decision, I'd like to ask you. Basically, I'd like to know answers to these questions:</p>[list]<li>What did you like about the book?</li> <li>What did you hate about the book?</li> <li>What were your three favorite chapters?</li> <li>What were your three least favorite chapters?</li> <li>Are there any chapters that should be removed?</li> <li>What's missing from the book?</li> </ul> <p>Feel free to leave these as comments on this blog post or to email me directly. Either way, I want to know what you think so that the next edition of <a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&amp;tag=nczonline-20&amp;camp=1789&amp;creative=9325&amp;path=http%3 A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F0764579088% 2F" rel="external" title="Professional JavaScript for Web Developers">Professional JavaScript for Web Developers</a> will be as helpful to you, if not moreso, than the first.</p>]]></description><pubDate>Sat, 17 Mar 2007 00:00:00 EDT</pubDate></item><item><title>.NET to be more like JavaScript</title><link>http://www.nczonline.net/archive/2007/3/430</link><description><![CDATA[<p>This was an interesting read I found today: <a href="http://weblogs.asp.net/scottgu/archive/2007/03/13/new-orcas-language-feature-extension-methods.aspx" rel="external" title="New &quot;Orcas&quot; Language Feature: Extension Methods">New &quot;Orcas&quot; Language Feature: Extension Methods</a>. The point of the post is to discuss a new upcoming feature for .NET languages in which developers can add their own methods to objects without touching the class definition. Essentially, at any point you can add a method to any class such that all instances will have it. This is just like JavaScript, and it works for all .NET languages!</p> <p>The ironic thing is that it allows you to do what I always tell people to avoid: you can't modify objects you don't own. While it's possible in JavaScript, and fun to do as a hobby (most of my hobby scripts modify some object or another), it's not a good idea to do in production code. There's already too much stuff going on in a developer's head to make them figure out whether a method is native or not. I know they're trying to make .NET as extensible as possible, but whatever happened to creating a subclass or using the behavior pattern? :: sigh ::</p>]]></description><pubDate>Tue, 13 Mar 2007 00:00:00 EDT</pubDate></item><item><title>The new My Yahoo! Beta has launched, and I helped</title><link>http://www.nczonline.net/archive/2007/3/429</link><description><![CDATA[<p>For the past nine months, people have been asking me what I've been doing at <a href="http://www.yahoo.com" rel="external" title="Yahoo!">Yahoo!</a> since I joined. They've asked me to talk about it, to blog about it, to let everyone know what was the draw that got me to go to <a href="http://www.nczonline.net/archive/2006/6/349" rel="internal" title="I'm a Yahoo!">Yahoo! over Google</a> so long ago. It was the opportunity to help redefine one of the most important web sites on the Internet: <a href="http://my.yahoo.com" rel="external" title="My Yahoo!">My Yahoo!</a>.</p> <p>Today, I'm proud to <a href="http://www.readwriteweb.com/archives/my_yahoo_web20_makeover.php" rel="external" title="My Yahoo! Gets Web 2.0 Makeover">announce</a> that we've launched a brand new version of My Yahoo! in the United States as a limited beta. This is what I, and a number of incredibly smart engineers, have been working on all this time. We've been quietly keeping our mouths shut as <a href="http://www.netvibes.com" rel="external" title="NetVibes">NetVibes</a> and <a href="http://www.pageflakes.com" rel="external" title="PageFlakes">PageFlakes</a> have made announcements and people have said that My Yahoo! wasn't keeping up. We kept quiet so as not to ruin the surprise.</p> <p>I was so happy that we had no leaks, and that this came as a huge surprise to everyone. This product is the result of the tireless efforts of a bunch of people who truly have passion for this product and believe in its future. I'm just happy to be able to say that I was involved with this group of people and that I was able to lend a hand in developing the vision that first convinced me that Yahoo! was the place I wanted to be.</p> <p>When can you see it? If you've been a My Yahoo! user, you may notice a little something that shows you how to see the new version. If you're not a user...well shame on you. What have you been doing all this time? ;)</p>]]></description><pubDate>Thu, 08 Mar 2007 00:00:00 EST</pubDate></item><item><title>Another Pro Ajax 2e excerpt</title><link>http://www.nczonline.net/archive/2007/3/428</link><description><![CDATA[<p>The marketing blitz for <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fww w.amazon.com%2FProfessional-Ajax-2nd-Nicholas-Zakas%2Fdp%2F0470109491%2F&amp;tag=nczonline-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=932 5" rel="external" title="Professional Ajax, Second Edition">Professional Ajax, 2nd Edition</a> has begun. As part of it, you benefit by being privy to free excerpts along the way. The latest excerpt, courtesy of Wiley, is on <a href="http://www.wrox.com/WileyCDA/Section/id-303210.html" rel="external" title="Ajax Debugging using Microsoft Fiddler">Ajax Debugging using Microsoft Fiddler</a>. This is a section from the Ajax Debugging chapter of the book. I hope you enjoy it and please send along your comments if/when you pick up the book and start using it.</p>]]></description><pubDate>Tue, 06 Mar 2007 00:00:00 EST</pubDate></item><item><title>Free excerpt from Professional Ajax, Second Edition</title><link>http://www.nczonline.net/archive/2007/3/427</link><description><![CDATA[<p>The good folks at the <a href="http://www.yuiblog.com" rel="external" title="YUI Blog">YUI Blog</a> have just posted an <a href="http://yuiblog.com/blog/2007/03/02/zakas-proajax/" rel="external" title="Free Excerpt: Nicholas Zakas on YUI Connection Manager, from Professional Ajax 2nd Edition">exclusive excerpt</a> from <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fww w.amazon.com%2FProfessional-Ajax-2nd-Nicholas-Zakas%2Fdp%2F0470109491%2F&amp;tag=nczonline-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=932 5" rel="external" title="Professional Ajax, Second Edition">Professional Ajax, Second Edition</a>. Thanks to <a href="360.yahoo.com/ericmiraglia" rel="external" title="Eric Miraglia">Eric Miraglia</a> from the <acronym title="Yahoo! User Interface">YUI</acronym> team and my editor <a href="http://wroxblog.typepad.com" rel="external" title="Jim Minatel Wrox Book Editor Blog">Jim Minatel</a> for making this deal. It's incredible to have the support of both of you, I can't thank either one of you enough.</p> ]]></description><pubDate>Fri, 02 Mar 2007 00:00:00 EST</pubDate></item></channel></rss>
"
<?xml version="1.0"?><rss version="2.0"><channel><title>NCZOnline - The Official Web Site of Nicholas C. Zakas</title><link>http://www.nczonline.net</link><description>The personal blog of Nicholas C. Zakas</description><language>en-us</language><item><title>Observers shouldn#039;t observe themselves</title><link>http://www.nczonline.net/archive/2007/4/436</link><description><![CDATA[<p>I love design patterns, they make life so much easier. Particularly, I love the <a href="http://en.wikipedia.org/wiki/Observer_pattern" rel="external" title="Observer pattern">observer pattern</a>. If you use JavaScript, you're already familiar with this pattern: events. Events are how we tie functionality to a page and create interactions for the user. You can even create your own observer objects using JavaScript libraries such as <a href="http://developer.yahoo.com/yui/" rel="external" title="Yahoo! User Interface Library">YUI</a> or even my own <a href="http://www.nczonline.net/downloads/" rel="internal" title="Downloads">zEvents</a>. The problem is in how I've seen them implemented.</p> <p>I'll say this as clearly as possible: <strong>observers shouldn't observe themselves</strong>. An event indicates that something of importance will occur or has occurred. There is some default behavior that is of interest to observers and the event is the way to broadcast that this important moment in processing has occurred. The default behavior should <em>never</em> be executed by an observer. Let me state this as a concrete example: if your object publishes a load event, you shouldn't assign an event handler that does the loading. The default behavior should be there regardless of the event. In fact, you should be able to remove all events and have the object still perform its duties appropriately.</p> <p>Again, I love the observer pattern and I'm a big fan of creating objects with custom events (loosely coupled objects rule!). But let's have some sanity around events. Let the important moments be just those, and make sure your object works appropriately without any observers subscribing to its events.</p>]]></description><pubDate>Tue, 03 Apr 2007 00:00:00 EDT</pubDate></item><item><title>Too much April Fool#039;s</title><link>http://www.nczonline.net/archive/2007/4/435</link><description><![CDATA[<p>Now, I'm just as fun-loving as the next software engineer, but I was really irked this April 1st when my syndicated newsreader was flooded with April Fool's jokes from just about every major source of credible news I typically go to:</p>[list]<li>Surfin' Safari: <a href="http://webkit.org/blog/100/webkit-shutting-down/" rel="external" title="WebKit shutting down">WebKit Shutting Down</a></li> <li>Google Blog: <a href="http://googleblog.blogspot.com/2007/04/project-teaspoon.html" rel="external" title="Project Teaspoon">Project Teaspoon</a></li> <li>Ajaxian: <a href="http://ajaxian.com/archives/the-new-timers" rel="external" title="The New Timers">The New Timers</a></li> </ul> <p>Perhaps I'm just getting disgruntled in my advanced age, but I find this really annoying. It's one thing to have an April Fool's joke (key: typically jokes say somewhere, &quot;April Fool's!!!!&quot;) but it's another thing to mix this stuff in with other, legitimate news items. In an age when so much online content is spam, I've learned to trust certain sites for my news. When they go and do this, it really makes me stop and question.</p>]]></description><pubDate>Mon, 02 Apr 2007 00:00:00 EDT</pubDate></item><item><title>WrestleMania!!!</title><link>http://www.nczonline.net/archive/2007/4/434</link><description><![CDATA[<p>It's been a while since I purchased a wrestling pay-per-view because they mostly have been disappointments over the past couple years. This year I decided, what the heck, I'm gonna get WrestleMania and invite some friends over to watch. What resulted was a great time with a small bunch of people: <a href="http://www.rolandblanton.com" rel="external" title="Roland Blanton">Roland</a> (my former boss), <a href="http://www.stevesapartment.com/" rel="external" title="Steve's Apartment">Steve</a> (my co-worker), Matt (of <a href="http://developer.yahoo.com/yui" rel="external" title="Yahoo! User Interface Library">YUI</a> fame), <a href="http://www.dustindiaz.com" rel="external" title="/with Imagination">Dustin</a>, and my next door neighbor, Abbey. And there you have it, my first party in California. :)</p> <p>I have to say, I thought the show was pretty good, probably one of the better ones I've seen recently. I was shocked they started with the ladder match, since I thought that would be pretty good. It definitely had some nice spots, and the crowd over my place was entertained, but I thought the ending was a little anti-climactic. I wonder if Edge really did get hurt and that changed the ending.</p> <p>The Undertaker winning against Batista was a lot better match than I expected. The crowd in my apartment was definitely marking out (all Undertaker fans) and when he got the pin, there was a loud shout, &quot;yeah!&quot; I'm so glad they didn't ruin Taker's win streak. Batista is good, but I don't think he's worthy of upsetting the legend. One sign said it all: If Batista wins, we riot.</p> <p>The hair versus hair match was very entertaining, but rather predictable. You knew at some point Austin was gonna get involved and cause some trouble. You knew that there was no way Trump was going to have his head shaved. Really it was still an entertaining match. And McMahon doesn't look bad with his head shaved.</p> <p>The last match between John Cena and Shawn Michaels was also much better than I had expected. Let's face it, Cena has put up some real stinker matches. This was his first legitimate championship performance, and I don't think it would have been so without the help from Michaels. HBK has had so many great matches, which is why I figured that this would be a legitimizing win for Cena rather than the beginning of a new title reign for Michaels. This match makes Cena look like a good champion, and it was a good win despite the fan reaction.</p> <p>Overall, I thought the show was good. My main disappointments were that there were no tag team championships on the line and no cruiserweight match. I felt like the young guys should have been more involved, but overall, the night felt satisfying for this long-time wrestling fan.</p>]]></description><pubDate>Mon, 02 Apr 2007 00:00:00 EDT</pubDate></item><item><title>Surviving an interview with me</title><link>http://www.nczonline.net/archive/2007/3/433</link><description><![CDATA[<p>I've been meaning to post this for a while, but it's only now that I've finally decided to do it. So you've applied for a job and you see that I'm on the list of people interviewing you. You're already a little nervous because, let's face it, interviews are uncomfortable no matter what. I'm not a tough interviewer, but there are some things you really need to do when in a room with me to make sure I don't write you off.</p>[list]<li><strong>Answer the question.</strong> When I ask you a question, make sure you answer it. I've sat in too many interviews where I ask questions and the candidate talks around the topic but never actually answers the question. I know you're nervous, and some blabbering is expected, but seriously, come back to the point. It's not an opportunity for you to share a cute anecdote about your cat, I actually do want the answer. If you're not sure what I'm asking for, ask me to clarify, I have no problem repeating questions or trying to ask them in a different way.</li> <li><strong>Tell me what you don't know.</strong> If I ask you something that's out of your realm of knowledge, say so. I don't expect you to be an encyclopedia. Once I know that you don't know how to answer, I can more fairly evaluate you. You won't get to avoid the question, but I'll give you hints to see if your problem-solving skills can take you the rest of the way.</li> <li><strong>Don't give up.</strong> When in an interview with me, never give up. If you're following my rules so far, you got a question you didn't know how to answer and you told me so. But now, don't give up! I'm giving you hints to get the correct answer; don't stop me every step and say, &quot;I really don't know.&quot; In our profession, you'll be met with challenges that you don't have an immediate solution for, will you give up then? I need to know you're able to work through a problem and don't get so frustrated that you just throw in the towel.</li> <li><strong>Don't assume trick questions.</strong> Certain companies have created a culture of fear around interviews where they ask you off-the-wall riddles and trick questions. I don't subscribe to that way of interviewing. All of my questions have answers, most of them have many different correct answers, and I promise that I will never ask you a trick question. It demeans you and it's useless to me. Assume each question I ask has at least one correct answer.</li> <li><strong>Back up your statements.</strong> If you say something hinting at a solution or some knowledge you have, be prepared to discuss it. If I ask you a question and you say something like, &quot;well, since IE doesn't support CSS3...&quot;, then you better be prepared to tell me what you'd do if IE did support CSS3.</li> <li><strong>Don't say you're an expert.</strong> This probably goes for most interviews, but especially with me. I never ask you to rank your skills on a scale of 1 to 10, so don't off that information to me. As soon as you put yourself into the &quot;expert&quot; category, I'm going to start you off with tougher questions. I've yet to meet someone who introduced themselves as an expert who actually was. Experts don't need to tell you that they're experts, they show you.</li> <li><strong>Don't try to impress me.</strong> If I want to know something, I'll ask. I know the information I need to get while in the interview, and any time I hear someone say, &quot;want to see a neat trick?&quot; or something of the same flavor, I start to tune out. Just answer what I ask as best you can.</li> <li><strong>Be enthusiastic.</strong> If you're applying for a job working with me, make sure I want to work with you. The best way to do that is to be enthusiastic; show a willingness and eagerness to learn. Be able to talk about the product, the company, why this is the job you want. And pay close attention on that last one, I don't want to hear about all the reasons your current job sucks. It's certainly okay to explain the opportunities that you haven't received in your current or past position, but present it as how you're looking forward to growing and why this is the best place for you to do that.</li></ul> <p>Really, I do hope that anyone interviewing with me in the future will read this. I <em>want</em> you to do well when I interview you, I really, really do. Just avoid these common pitfalls and be yourself. Who knows, maybe we'll end up working together sometime soon.</p> <p><strong>P.S.</strong> The <a href="http://my.yahoo.com" rel="external" title="My Yahoo!">My Yahoo!</a> team is hiring. If you're a talented software engineer with a passion for innovation and for <a href="http://www.yahoo.com" rel="external" title="Yahoo!">Yahoo!</a> in general, <a href="http://www.nczonline.net/contact/" rel="internal" title="Contact me">contact me</a> and let's talk.</p>]]></description><pubDate>Tue, 27 Mar 2007 00:00:00 EDT</pubDate></item><item><title>Pain with inline-block (again)</title><link>http://www.nczonline.net/archive/2007/3/432</link><description><![CDATA[<p>Once again I find myself banging my head against the wall thanks to Firefox's lack of support for <code>inline-block</code> elements. At least Internet Explorer let's you set the display of an element to <code>inline-block</code> if it's an <code>inline</code> element by default (such as <code>span</code>, but won't work on <code>div</code>). Opera and Safari both supports <code>inline-block</code>, so why is it that Firefox doesn't? (Rhetorical, see my original post, <a href="http://www.nczonline.net/archive/2006/10/382" rel="internal" title="Pain with inline-block">Pain with inline-block</a>)</p> <p>In various situations I've used different Firefox extensions to work around this issue, but none of these work 100% of the time. The different things I've tried are:</p>[list]<li><strong><code>-moz-inline-box</code></strong> - similar to <code>inline-block</code> in that elements appear next to each other on the same line. Different in that you have no control over the text flow inside, so you have to add a <code>block</code> element inside of each one. Oh, and if your browser is in standards mode, it adds mysterious white space at the top. I haven't been able to figure out where it comes from, since it seems to happen only in some instances, but it's really frustrating.</li> <li><strong><code>table</code></strong> - this works well when your element will be the only one on a row and you need it to act like it's <code>inline-block</code>. Problem is that multiple instances wrap one under the other as if they were <code>block</code>.</li> <li><strong><code>table-cell</code></strong> - works when you need multiple instances on the same line. Caveat is that you need to only have these types of elements on the same line...and they behave like table cells, so widths can be a challenge to work with.</li></ul> <p>I still don't understand why <code>inline-block</code> is supported in everything but Firefox. For a browser that prides itself on being standards-compliant, it seems like there are some really basic things that are missing (hey, where's the <code>script</code>'s <code>defer</code> attribute?).</p>]]></description><pubDate>Wed, 21 Mar 2007 00:00:00 EDT</pubDate></item><item><title>What do you love/hate about Professional JavaScript?</title><link>http://www.nczonline.net/archive/2007/3/431</link><description><![CDATA[<p>Will all the excitement over the release of <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fww w.amazon.com%2FProfessional-Ajax-2nd-Nicholas-Zakas%2Fdp%2F0470109491%2F&amp;tag=nczonline-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=932 5" rel="external" title="Professional Ajax, Second Edition">Professional Ajax, 2nd Edition</a>, I didn't want people to think that I was leaving my first book, <a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&amp;tag=nczonline-20&amp;camp=1789&amp;creative=9325&amp;path=http%3 A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F0764579088% 2F" rel="external" title="Professional JavaScript for Web Developers">Professional JavaScript for Web Developers</a> behind. In fact, I'm now going through it to figure out what should and shouldn't be in a second edition. To aid in this decision, I'd like to ask you. Basically, I'd like to know answers to these questions:</p>[list]<li>What did you like about the book?</li> <li>What did you hate about the book?</li> <li>What were your three favorite chapters?</li> <li>What were your three least favorite chapters?</li> <li>Are there any chapters that should be removed?</li> <li>What's missing from the book?</li> </ul> <p>Feel free to leave these as comments on this blog post or to email me directly. Either way, I want to know what you think so that the next edition of <a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&amp;tag=nczonline-20&amp;camp=1789&amp;creative=9325&amp;path=http%3 A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F0764579088% 2F" rel="external" title="Professional JavaScript for Web Developers">Professional JavaScript for Web Developers</a> will be as helpful to you, if not moreso, than the first.</p>]]></description><pubDate>Sat, 17 Mar 2007 00:00:00 EDT</pubDate></item><item><title>.NET to be more like JavaScript</title><link>http://www.nczonline.net/archive/2007/3/430</link><description><![CDATA[<p>This was an interesting read I found today: <a href="http://weblogs.asp.net/scottgu/archive/2007/03/13/new-orcas-language-feature-extension-methods.aspx" rel="external" title="New &quot;Orcas&quot; Language Feature: Extension Methods">New &quot;Orcas&quot; Language Feature: Extension Methods</a>. The point of the post is to discuss a new upcoming feature for .NET languages in which developers can add their own methods to objects without touching the class definition. Essentially, at any point you can add a method to any class such that all instances will have it. This is just like JavaScript, and it works for all .NET languages!</p> <p>The ironic thing is that it allows you to do what I always tell people to avoid: you can't modify objects you don't own. While it's possible in JavaScript, and fun to do as a hobby (most of my hobby scripts modify some object or another), it's not a good idea to do in production code. There's already too much stuff going on in a developer's head to make them figure out whether a method is native or not. I know they're trying to make .NET as extensible as possible, but whatever happened to creating a subclass or using the behavior pattern? :: sigh ::</p>]]></description><pubDate>Tue, 13 Mar 2007 00:00:00 EDT</pubDate></item><item><title>The new My Yahoo! Beta has launched, and I helped</title><link>http://www.nczonline.net/archive/2007/3/429</link><description><![CDATA[<p>For the past nine months, people have been asking me what I've been doing at <a href="http://www.yahoo.com" rel="external" title="Yahoo!">Yahoo!</a> since I joined. They've asked me to talk about it, to blog about it, to let everyone know what was the draw that got me to go to <a href="http://www.nczonline.net/archive/2006/6/349" rel="internal" title="I'm a Yahoo!">Yahoo! over Google</a> so long ago. It was the opportunity to help redefine one of the most important web sites on the Internet: <a href="http://my.yahoo.com" rel="external" title="My Yahoo!">My Yahoo!</a>.</p> <p>Today, I'm proud to <a href="http://www.readwriteweb.com/archives/my_yahoo_web20_makeover.php" rel="external" title="My Yahoo! Gets Web 2.0 Makeover">announce</a> that we've launched a brand new version of My Yahoo! in the United States as a limited beta. This is what I, and a number of incredibly smart engineers, have been working on all this time. We've been quietly keeping our mouths shut as <a href="http://www.netvibes.com" rel="external" title="NetVibes">NetVibes</a> and <a href="http://www.pageflakes.com" rel="external" title="PageFlakes">PageFlakes</a> have made announcements and people have said that My Yahoo! wasn't keeping up. We kept quiet so as not to ruin the surprise.</p> <p>I was so happy that we had no leaks, and that this came as a huge surprise to everyone. This product is the result of the tireless efforts of a bunch of people who truly have passion for this product and believe in its future. I'm just happy to be able to say that I was involved with this group of people and that I was able to lend a hand in developing the vision that first convinced me that Yahoo! was the place I wanted to be.</p> <p>When can you see it? If you've been a My Yahoo! user, you may notice a little something that shows you how to see the new version. If you're not a user...well shame on you. What have you been doing all this time? ;)</p>]]></description><pubDate>Thu, 08 Mar 2007 00:00:00 EST</pubDate></item><item><title>Another Pro Ajax 2e excerpt</title><link>http://www.nczonline.net/archive/2007/3/428</link><description><![CDATA[<p>The marketing blitz for <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fww w.amazon.com%2FProfessional-Ajax-2nd-Nicholas-Zakas%2Fdp%2F0470109491%2F&amp;tag=nczonline-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=932 5" rel="external" title="Professional Ajax, Second Edition">Professional Ajax, 2nd Edition</a> has begun. As part of it, you benefit by being privy to free excerpts along the way. The latest excerpt, courtesy of Wiley, is on <a href="http://www.wrox.com/WileyCDA/Section/id-303210.html" rel="external" title="Ajax Debugging using Microsoft Fiddler">Ajax Debugging using Microsoft Fiddler</a>. This is a section from the Ajax Debugging chapter of the book. I hope you enjoy it and please send along your comments if/when you pick up the book and start using it.</p>]]></description><pubDate>Tue, 06 Mar 2007 00:00:00 EST</pubDate></item><item><title>Free excerpt from Professional Ajax, Second Edition</title><link>http://www.nczonline.net/archive/2007/3/427</link><description><![CDATA[<p>The good folks at the <a href="http://www.yuiblog.com" rel="external" title="YUI Blog">YUI Blog</a> have just posted an <a href="http://yuiblog.com/blog/2007/03/02/zakas-proajax/" rel="external" title="Free Excerpt: Nicholas Zakas on YUI Connection Manager, from Professional Ajax 2nd Edition">exclusive excerpt</a> from <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fww w.amazon.com%2FProfessional-Ajax-2nd-Nicholas-Zakas%2Fdp%2F0470109491%2F&amp;tag=nczonline-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=932 5" rel="external" title="Professional Ajax, Second Edition">Professional Ajax, Second Edition</a>. Thanks to <a href="360.yahoo.com/ericmiraglia" rel="external" title="Eric Miraglia">Eric Miraglia</a> from the <acronym title="Yahoo! User Interface">YUI</acronym> team and my editor <a href="http://wroxblog.typepad.com" rel="external" title="Jim Minatel Wrox Book Editor Blog">Jim Minatel</a> for making this deal. It's incredible to have the support of both of you, I can't thank either one of you enough.</p> ]]></description><pubDate>Fri, 02 Mar 2007 00:00:00 EST</pubDate></item></channel></rss>


Reply With Quote
  #6 (permalink)  
Old April 13th, 2007, 09:14 AM
jmcpeak's Avatar
Wrox Author
Points: 467, Level: 7
Points: 467, Level: 7 Points: 467, Level: 7 Points: 467, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , Texas, USA.
Posts: 87
Thanks: 0
Thanked 18 Times in 17 Posts
Default

Maxint40,

I apologize for taking all this time to get back with you; work has kept me busy.

Yes, the text before the XML declaration is part of the problem. The feed is also repeated, and that, too, would cause a problem.

What version of PHP are you using?

------------------------
Jeremy McPeak
Author of:
Professional Ajax, 2nd Edition
Beginning JavaScript, 3rd Edition

http://www.wdonline.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ch5 Fooreader zxmlDom is undefined razzzzer BOOK: Professional Ajax ISBN: 978-0-471-77778-6 2 February 8th, 2007 05:01 AM
chapter 15 manal_sag BOOK: Beginning ASP 3.0 1 June 18th, 2005 11:05 AM
Chapter 15 - functions.php question buzzuh BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 September 7th, 2004 08:31 AM
Building an ASP.NET Intranet Chapter 7 Question MrGio All Other Wrox Books 1 November 20th, 2003 09:57 AM



All times are GMT -4. The time now is 04:00 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.