Get your own customer support community

Recent activity

Subscribe to this feed
  • idea

    Alex shared an idea in LUCI on November 07, 2008 20:04:

    Alex
    Catching load events of the main window from your sidebar.
    Once you have created a sidebar xul, you want to listen to load events from the main window (to update the links in your sidebar).

    Since we are not supposed to share code here is one conceptual way for achieving this:
    1. add an event listener to your sidebar window object that listens to the load event (i.e. it will be triggered when you load the sidebar)
    2. get a reference to the main window object as described in Link2 (see below)
    3. here is the trick: within the function that handles the load event of your xul window, add an event listener to the appcontent element of the main window's document (not the xul window's document!) that listens to DOMContentLoaded and calls some function
    4. once you have loaded the sidebar, that function will be called each time you switch to a new url in the main window
    (5. you might want to remove the eventlistener from the appcontent once the sidebar is unloaded)

    The following resources may help with this (thanks to Pat for the first one):
    Link1: https://developer.mozilla.org/En/Code...
    Link2: https://developer.mozilla.org/en/Work...
  • Alex started following the question "When is the project due?" in LUCI.

  • question

    Alex asked a question in LUCI on October 23, 2008 15:27:

    Alex
    Can WebSphinx process http://en.wikipedia.org/wiki/Stonehenge?
    This is related to the shortest path problem. Is anybody else experiencing problems processing http://en.wikipedia.org/wiki/Stonehenge? If I set that page as the only seed then the crawler stops immediately. Also if I try to get to that page "indirectly" e.g. via http://en.wikipedia.org/wiki/Stonehenge_(disambiguation) then WebSphinx does not process it (it passes shouldVisit but never enters doVisit).
    Sure, I can find the shortest path by "manual" BFS but that can hardly be the point of the assignment...
    Can anyone help me?
  • idea

    Alex replied on October 21, 2008 04:39 to the idea "Palindrome examples" in LUCI:

    Alex
    I found the palindrome:
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
    on
    http://en.wikipedia.org/wiki/Pendulum

    Obviously, there is a mistake in the references on that page.
    This palindrome is consistent with your specs. We may think about modifying the constraint to "must contain at least three different letters". I am indifferent to whether the above palindrome is acceptable or not.
    What do you think?
  • question

    Alex asked a question in LUCI on October 20, 2008 23:02:

    Alex
    Palindromes, Lipograms and Rhopalics of what exactly? What is the input to each task?
    Assignment 2 asks for Palindromes, Lipograms and Rhopalics. I need clarification on following issues: 1. does the longest palindrome in a page refer to the longest substring in the text of a page whose spaces and special characters have been removed and everything converted to lower/upper case? 2. Do the Lipograms refer to words or substrings (as in 1), i.e. the longest substring that does not contain some character? For Rhopalics shall we remove special characters?