Slashdot Mirror


User: CosmicDreams

CosmicDreams's activity in the archive.

Stories
0
Comments
89
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 89

  1. Re:Javascript, good for beginners and reference on A Good Resource for Learning XUL & Javascript? · · Score: 1

    Reading this later I realize I should have creditied Mozilla's Javascript debugger. Without it I would not of discovered that I was passing a tree with the event and not a treeitem.

    The Javascript Console and Javascript debugger are essential for XUL development, in my opinion. They also come in handy for general web development as well, as they can accurately reveal and test javascript issues.

  2. Re:Javascript, good for beginners and reference on A Good Resource for Learning XUL & Javascript? · · Score: 2, Informative
    Sure, here's the entire page. Note that the page consists of a menubar, checkbox, tree, and iframe. The menubar is dynamically built by XUL's use of RDF datasources. All of this was built based off what I learned from XULPlanet's tutorials and examples.

    Actual urls have been removed to protect my friends from slashdotting.

    <?xml version="1.0"?>

    <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

    <window id="child-recurse-menus"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper /there.is.only.xul">

    <script type="application/x-javascript">
    <!-- /*
    loadURL takes an event and pulls a new url from it. Then it loads that new url into the mainpage iFrame.

    loadURL2 takes a tree object then walks through it to find the treeitem that caused the event. Then it pulls the new url from the treeitem and loads that url into the mainpage iFrame.
    */
    function loadURL(event) {
    var contentFrame = document.getElementById('contentFrame');
    var url = event.target.getAttribute('value');

    if (url) contentFrame.setAttribute('src', url);
    }
    function loadURL2(tree) {
    var contentFrame = document.getElementById('contentFrame');
    var index = tree.currentIndex - 1;
    var treeitem = tree.lastChild.firstChild.firstChild.childNodes.it em(index);
    var url = treeitem.id;

    if (url) contentFrame.setAttribute('src', url);
    }
    -->
    </script>

    <toolbox>

    <menubar id="menubar" datasources="mozmain.rdf" ref="RDFref" oncommand="loadURL(event);">
    <template>
    <rule parent="menubar">

    <menu uri="rdf:*" label="rdf:rdfURLandREFgoeshere" id="topmenu"/>
    </rule>
    <rule iscontainer="true">
    <menupopup>
    <menu uri="rdf:*" label="sameRDFandREF" id="submenu"/>
    </menupopup>
    </rule>
    <rule>
    <menupopup>

    <menuitem uri="rdf:*" label="nameFromRDF" value="valueFromRDF" />
    </menupopup>
    </rule>
    </template>
    </menubar>
    <toolbar id="toolbar">
    <checkbox label="Help"/>
    </toolbar>
    </toolbox>

    <box flex="1">

    <!-- OK HERE STARTS THE TREE STUFF --->
    <box>
    <tree id="tree" flex="1" seltype="single" width="150" height="200" onselect="loadURL2(event.target);">
    <treecols>
    <treecol id="name" label="Members" primary="true" flex="1"/>
    </treecols>

    <treechildren>
    <treeitem container="true" open="true" label="Nullset" position="1">

    <treechildren>
    <treeitem id="friend1" label="bbarker"/>
    <treeitem id="friend2" label="kefka"/>
    <treeitem id="friend3" label="Kagewaiidesu"/>
    <treeitem id="friend4" label="luckyboy"/>
    <treeitem id="friend5" label="gandalf"/>
    <treeitem id="friend6" label="tangent"/>
    <treeitem id="friend7" label="katana"/>
    <treeitem id="friend8" label="acetate"/>

    <treeitem id="friend9" label="cosmicdreams"/>
    <treeitem id="friend10" label="jawz"/>
    </treechildren>
    </treeitem>
    </treechildren>
    </tree>
    </box>

    <iframe id="contentFrame" src="mainpage" flex="1" />

    </box>

    </window>

    If you have any questions please ask.

  3. Javascript, good for beginners and reference on A Good Resource for Learning XUL & Javascript? · · Score: 2, Informative

    For Javascript I have that O'reily's The definitive Guide on Javascript to be exeptional. I mostly use it today for referencing specfic methods and functions, but it's also a good book to start with.

    With XUL nearly all of the dynamic aspects are controlled by javascript, so its good to get a good grounding in that subject before you start in with the XUL tags.

    I recently coded an XUL tree that loads links at the click event. Sounds easy but it took me a long time to figure out how to bubble up the right event.

    The only way I figured it out was with the help of that javascript book.

  4. Re:Years away on New Advances Bring Fusion Closer to Reality · · Score: 1

    How many years has it been? I knew if I kept reading slashdot I'd see a quote from Contact.

  5. Re:XUL on Firefox News Roundup · · Score: 2, Informative

    Indeed, and if you want to get on the ground floor of XUL development, goto XULPlanet, start reading, and get cracking on your own code.

  6. The Real Question is... on Metal Gear Solid 4 Confirmed · · Score: 1

    Which system? will it be out in 2005 or early '06 or will they wait for the PS3 to come out so they can launch with it?

    That would be something.

  7. NOOOO!!!!!! on Winamp Down for the Count · · Score: 1

    nuff said

  8. Awesome, thanks! on Welkin: A General-Purpose RDF Browser · · Score: 1

    I have been looking for a tool (that's better than Document inspector) to troubleshoot while I'm trying to code in RDF. I was hopeing for a debugger so I wouldn't have to test so many cases through multiple steps, but being able to see the structure may help some.

    Too bad it doesn't take the XUL rules into consideration when redering maps like the one shown in the screenshot. Do you know if they are going to open development up anytime soon?

  9. Re:For PSP Fans, backup battery may be necessary on Sony Says PSP Battery Life is Shorter than Quoted · · Score: 1

    Yes, that's true for the short term. But increased demand signals that is advantageous to increase supply which ultimately adjusts our model to meet demand and then when demand dimenishes or economy of scale is reached it drives down price.

    I hope i've got that right

  10. For PSP Fans, backup battery may be necessary on Sony Says PSP Battery Life is Shorter than Quoted · · Score: 1

    I think that if the battery life is a major issue, the PSP faithful will simple buy more extra battery packs. I think they will initially sell for around $45, so it's like the memory card when the PS2 first came out. Consider how many people bought one of those in the early days of the PS2. Eventually, Sony dropped the price. Supply and demand.

    Yet, an extra battery pack is more of nuisance that a memory card. It requires periodic recharge and forces the user to remember to keep a battery charged or charging at all times. But in the end the market may drive down the price of extra battery packs and this battery life issue may be resolved through non techical means.

  11. Re:A few really good Apps could make the differenc on Firefox - The Platform · · Score: 4, Informative
    Does anyone know if someone is writing a webmail client in XUL?


    Yes, http://xulwebmail.mozdev.org/
  12. Re:What a lousy Slashdot article on White House Lied About Iraq Nuclear Programs · · Score: 1

    Why in the world is this comment not modded up. This is the most objective comment I've seen yet. and I've been post hunting for almost an hour!

  13. Re:"new york times" on White House Lied About Iraq Nuclear Programs · · Score: 1

    Give the NYT a second chance, subscribe to their RSS stream. I used BugMeNot to get in and subscribed to thier RSS stream last week. They've been pretty good so far.

    Don't shy away from different points of view my friend, you might be subscribing to the same kind of groupthink you detest.

  14. Re:COULD on White House Lied About Iraq Nuclear Programs · · Score: 1

    Do you have links, can you support your claim? And if you can why do I have to hunt through this stream with -1 all posts to find it?

  15. Blogs left out on Amateur Revolution? · · Score: 2, Interesting

    You forgot to mention the blogosphere. Blogs dramatically lower the cost of entry into journalism. This has led many professionals and a bunch of arm chair quarterbacks to contribute the media cycle. In a nation that prides freedom of press, freedom of speech, and fairness, this is a good thing.

  16. Re:Article text has excellent theory. on Optimizing News Sites For Google News · · Score: 1

    I've seen Mr. Bush more often than any you mentioned above.

  17. Coverage on TV on US Candidates Ignore Looming Debt Crisis · · Score: 1

    This is issue has been the centerpiece of MSNBC's Scarborough Country for about a week. Mainly because he's promoting his new book. Link to transcripts here.

    The world is changeing and now we have a way of making issues come to the forfront. Bloggers unite!

  18. Re:In action in Chaska, MN on Philadelphia Considers Free Citywide Wireless Access · · Score: 1

    True, as I understand the only reason why Chaska id this was because they couldn't get any of the major service providers to extend out to the town. Not of $ in it, I guess. So the city bought some fiber for the downtown buisnesses and rolled out the wireless bridge plan for the residents.

    As an ISP so far they've been nice. There were some connection problems in August due to start up pains, so they've said their not going to charge for September.

    Now I just wish I had a wireless laptop.

  19. In action in Chaska, MN on Philadelphia Considers Free Citywide Wireless Access · · Score: 2, Informative

    I recently moved to a suburb of the Twin cities called Chaska, MN. Right when I moved they were rolling out their implementation of a town-wide wireless network. Their solution involved handing out wireless bridges to customers and sell service for $15 dollars a month.

    Service was poor to nonexistant for the first three months. But as more residents bought in to the idea and turned on their bridges, access speeds and reliability greatly improved. Now its much faster than dial-up and I can even play a few games online.

  20. Honestly does anyone watch Enterprise on Babylon 5 Creator Pitches Trek · · Score: 2, Interesting

    The Xindi story arc was pretty good. A lot of the complaints I am seeing about Star Trek in general do not aptly describe Enterprise as it was last season. There were consequences, and while none of the major characters died. Some were changed dramatically, and possibly forever. And with the cliffhanger at the end of the last episode, they could go in several directions with the show.

    What makes Enterprise different from Next Gen is that the episodes are more serial (less episodic). The previous episode usually impact the next episode. And past episodes have frequently impacted following episodes (Andorians, Star Fleet politics, gaining the trust of Vulcans, not to mention the whole Temporal War)

    Finally, Star Trek is seems to be gaining the social comentary it once had in the original series. The Xindi war, especially the last few episodes, seemed to be makeing the same arguement those who support and those who are against the Iraqi War are making.

    I really think folks should give the show a chance. Tivo a few reruns. Like Farscape, watch at least three to get what's going on.

  21. CSS opacity!! on Mozilla 1.7 Released · · Score: 2, Interesting

    It appears that mozilla.org also supports opacity

  22. Support for opacity on Mozilla Project Officially Releases Firefox 0.9 · · Score: 1

    In one person's analysis of the bugs fix for Firefox .9 it has been discovered that CSS-enabled opacity is one of the new features in this most resent release.

    I for one have wanted to test this feature, but didn't know when it was going to hit the scene. It begs the question, Is Firfox the first browser to support CSS opacity?

  23. DS by Christmas on Nintendo To Debut Next-Gen Console At E3 2005 · · Score: 0, Offtopic

    Does anyone know whether or not the PSP will be here for Christmas? Seems like an enormous missed opprotunity if they don't. How many christmas season observing people are there in Japan NEway?

  24. No change for me on UPN Renews 'Star Trek: Enterprise' · · Score: 1

    I've always had to watch Enterprise on Fridays with my local station. This show is inspiring. I am happy to see it on the air for another season. Now the writers and producers will have to match this season's story arc, that isn't as easy as you might think.

  25. Comparisons to Walkman on E3 - PSP Loss-Making, Odama Pinballed, Humans All Destroyed · · Score: 2, Insightful

    I have read from press statements that Sony intends the new PSP to be the "Walkman" for a new generation. Yet, from its specs it only stats to be able to play Sony atrac format. IMO not a good market strategy. The Walkman was succesful due to its ease of use and portability. Not being able to play music because of some obsure data incompatability will be hurtful for the PSP's music capabilities.

    If Sony does not achieve its design goals for long battery life, music, movies, and lastly (and in their minds maybe least) game functionality. They might be able to tweak the components over time to extend the life of the system. The key will be whether it will be as easy to use and portable as the classic Walkman.

    Based on the current specs (ie. no MP3), I don't see that happening.