Planet maemo: category "feed:b60f2338d7a5b72897d3a13b738ecf26"

timeless

Porting a plugin from IE to Mozilla should be easy

2006-06-27 10:26 UTC  by  timeless
0
0
Porting a plugin from IE to Mozilla should be easy Porting a plugin from IE to Mozilla should be easy

Why should it be easy?

Both IE and Mozilla are web browsers and both are built on COM.

What other similarities do they have?

They both have undocumented APIs that cause developers to struggle. :).

What's the problem?

The developer of <jbrowse> (an IE plugin) tried to port it to the gecko platform and <gave up>.

How could it have been implemented?

I suppose it depends on how best to implement such a creature. I'm not an expert, so my first suggestion would have been:
  • try using a streamconverter, i.e. recognize Japanese tokens and replace them right away w/ something else.

What's probably a better approach?

using the DOM may be easier though. e.g. you get entities for free.

How would that work?

You'd listen for a load event and then start doing a tree walk w/ a lot of manipulation.

Is there a way to do this using XUL?

If jBrowse is just for tooltips/context menus, you can skip the core hacking and just use a mousemove listener/change the context menu.

Is there a bottom line somewhere?

Of course <../120/>.
timeless

Building a Bugzilla that can evolve safely

2006-06-26 03:27 UTC  by  timeless
0
0
Building a Bugzilla that can evolve safely Building a Bugzilla that can evolve safely
Click to read 1800 more words
timeless
Bugzilla, diversity, users, experience, looks and feel Bugzilla, diversity, users, experience, looks and feel Wouldn't it be enough to fix show_bug and the navigation?

No, not really. see, show_bug isn't such a big deal IMO:

  1. most people can read
  2. most people have wide screens
  3. the only times you have problems are when people start adding flags or cc lists
  4. and attachments

What's the bigger problem?

Query. Which is kinda funny, because i don't use query. Although if you consider the fact that I use gmail to do searches instead.

Why don't I use search?

Because the search is too hard to use and doesn't work. Even when I need an advanced search feature that gmail can't do, it's usually broken. Honestly, to the average manager show_bug.cgi is a nightmare.

Isn't query not so bad because we have Simple Query? No. If you look at the last couple of bugs i filed about query and friends, you'll see that it's fairly bad.

e.g. the fact that you can't easily search for bugs that are new or reopened w/in a time window. -- that's bad. and that's a manager task which doesn't fit in simple. actually. Isn't that a task that should fit in simple? Probably. It really is a manager task that does fit in simple.

Simple is really too simple, and having the ability to do a bit of time filtering in simple would make it much better for managers, w/o hurting most people.

Would using click to expand regions as in attachment adding on the enter bug page work?

Anything that hides stuff worries me, because i use Find. Either TAF, or FAYT or FIND.

Should I have to use find?

Someone said that "you shouldn't have to do that to use a UI". And yes, in theory I shouldn't, but...

Why do I feel that I have to use find?

Because all of the Bugzilla maintainers and customizers of all these silly Bugzillas insist on moving and hiding things such that i can't find them. And I have better things to do w/ my time than read the UI. If I know something should be there, then it's my browsers job to tell me where the customizer hid it.

If they were in sensible places, would that save time reading? Unfortunately it wouldn't because as I mentioned above, I have to visit quite a few.

Is the very fact that you have to read the UI a problem?

I suppose it is, but this was something mkanat said, not me :).
timeless
Roles that are real and distinct but will probably be forgotten or overlooked Roles that are real and distinct but will probably be forgotten or overlooked Here are a list of personas I doubt will appear:
  • Localizer
  • UI Designer
  • Spec Writer
  • Tester
  • Planner
timeless

Design by blogging a problem space

2006-06-23 06:08 UTC  by  timeless
0
0
Design by blogging a problem space Design by blogging a problem space The new world is great, all you need is a blog and someone to enumerate your problem space.

Why won't this work?

  1. There are millions of blogs, why would anyone find yours?
  2. There are millions of ways to log into a blog, why should someone get an account for yours or learn how to use your blogging software?
  3. Most people don't have time to actually enumerate personas and use cases. I happen to, and I've listed some in a response.
I challenge you to check and see if my suggested roles appear w/in the next two weeks (sorry, this means you shouldn't add it).

Someone made some stupid comment about closed installs not having end user like people.

  • This is wrong, i'm in a big company, i have some ability to file bugs against other products made by my company, and that doesn't mean i understand anything about the software involved.
  • The description of manager is totally bogus.
  • Managers generally don't care about what users are commonly reporting -- even mozilla managers generally don't care about that.
That's one of the big problems w/ personas: You pick a title and then stuff everything into it, and do a bad job of realizing that those things might not really belong to that hat.

timeless
Making life Hard for Paniced People - Sony Ericsson S710a, Apple iSync 1.5 Making life Hard for Paniced People - Sony Ericsson S710a, Apple iSync 1.5 It shouldn't be hard to take a phone you've been using w/ a mac for months and ask them to sync all the address and calendar info from the phone to the mac.

How hard can it be?

Well, first, iSync 1.5 doesn't recognize the phone, so when you go to Add Device, it will search, cause the phone to wake up, and then nothing useful happens.

What can you do?

Well, after a number of google searches, you might run across a link to <a dead ip address>

What does work?

With a bit of effort, it turns out that you can map that path to <salling's site> and if you remove the /salling/ part of the path, you get a <that works>

timeless

Bad Advice in Pretty Clothing

2006-01-09 07:41 UTC  by  timeless
0
0
Bad Advice in Pretty Clothing Bad Advice in Pretty Clothing A colleague sent around this url: <Optimizing JavaScript for Execution Speed>, suggesting that it was a good example could lead people to using the suggestions and thinking that they're all good.

What's wrong with that?

Well, for starters, not all of the examples or reasons are correct. it might be a good article in spirit but some of the advice will mess people up badly.

Minimize Object and Property Lookups

    Object-oriented techniques encourage encapsulation by tacking sub-nodes
and methods onto objects. However, object-property lookups are slow, especially if there is an evaluation. So instead of this:

for(var i = 0; i < 1000; i++) a.b.c.d(i); Do this:

var e = a.b.c.d; for(var i = 0; i < 1000; i++) e(i);

those two examples are not the same, as anyone who has accidentally torn a method from an object and tried calling it would tell you.
   var f = a.b.c;
   for(var i = 0; i < 1000; i++)
     f.d(i);
would be a generally correct optimization.

Access NodeLists Directly

 instead of this:
    nl = document.getElementsByTagName("P");
    for (var i = 0; i < nl.length; i++) {
      p = nl[i];
     Do this:
    for (var i = 0; (p = document.getElementsByTagName("P")[i]); i++)
But it's wrong at least mostly in its reasoning. The getElementsByTagName most definitely has to create the nodelist object. As it happens the nodelist object is mostly expensive if it's around to listen for dynamic changes. The right thing to do is probably:
    nl = Array.concat(document.getElementsByTagName("P"));
    for (var i = 0; i < nl.length; i++) {
      p = nl[i];
      ...

Use Object Literals

he's right.
    This saves space and unnecessary DOM references.
but it's not DOM references, just object references.

What should tell you not to suggest a page?

If the page uses markup like this:
                  By<strong> <a
href="mailto:http://www.websiteoptimization.com/contact">Andy
King</a></strong><br>
                  Contributing Writer<br>
A footnote about the markup you see above, I write my blog entries in a text editor in a text format, and use a script to generate html from them,

The link that appears in the document is

By <Andy King>
It should be:
By <Andy King>
And it's a bit hard for me to tell my script not to treat that url as somethingelse. I could i suppose teach it how to mishandle links in a manner similar to the way that the site I'm quoting did, but I'm not sure why I'd want to. mailto:http: isn't proper, ever. it's mailto:user@host. If you want to say that contact may be made by following an http link, then say so.
timeless

To use groups such that a user in a given group is limited to only seeing bugs in that group, the group name must match the product name?

Click to read 1444 more words
timeless

Using PAM for authenticating users in Bugzilla

2005-11-11 08:38 UTC  by  timeless
0
0
Using PAM for authenticating users in Bugzilla Using PAM for authenticating users in Bugzilla

Is there a PAM Module for Bugzilla?

No, but you could probably write a pam module. We mostly support our internal database and LDAP.

Shouldn't it be simple to use PAM with Bugzilla?

What happens when a new user magically appears in PAM?

At what point should Bugzilla know about it?

  1. when the user tries to log in?
  2. when the user tries to create an account?
  3. when someone tries to cc someone to a bug?

Could the user can be created by the useradd script?

That might work.
timeless

How *not* to do a Customization of Bugzilla

2005-11-11 08:30 UTC  by  timeless
0
0
How not to do a Customization of Bugzilla How not to do a Customization of Bugzilla after
sub LogDependencyActivity {
...
}
# this loop iterates once for each bug to be processed (eg when this script
# is called with multiple bugs selected from buglist.cgi instead of
# show_bug.cgi).
foreach my $id (@idlist) {
...
            # Release Notes
            if ($col eq 'release_notes') {
                if ($old eq '1') {
                    $old = "Yes";
                }
                elsif ($old eq '0') {
                    $old = "No";
                }
                if ($new eq '1') {
                    $new = "Yes";
                }
                elsif ($new eq '0') {
                    $new = "No";
                }
            }
            # End

What's wrong with this?

Well, the result of this clever code is this wonderful output in view bug activity:
            <td>release_notes
            </td>
            <td>No
            </td>
            <td>
                 
            </td>
for just about each time any user touches any bugs i.e. you have in show_bug:
      <tr>
          <td align="right" valign="center" width="35%"><b>Release <u>N<u>otes:<b></td>
          <td valign="center" align="left"><input type="checkbox" name="release_notes" size="1" value="1" ></td>
      </tr>
From this excerpt,
  1. you can see that it's obviously not checked.
  2. you're obviously not checking it (well, 99% of the time you click commit you aren't making something a release note).
  3. but each time you change the bug, the code decides your new value is empty and that your new value (empty) doesn't match the old value "No"

What happens?

Bugzilla is going to log that you changed it

What's the best thing to do when you encounter helpful code like this?

I changed the logic to:
# Changed on 11th Nov 2005 By timeless because this code is broken
            if (0 && ($col eq 'release_notes')) {

What's the result?

Well, I am now much happier

What should people have done instead?

Just use keywords. <Sample chaos>

timeless
It shouldn't be hard to provide a feature to regenerate bugspam since the beginning of time, right? It shouldn't be hard to provide a feature to regenerate bugspam since the beginning of time, right?
Click to read 1746 more words
timeless
Why can't/how could I make bugzilla let you CC people who do not have Bugzilla accounts? Why can't/how could I make bugzilla let you CC people who do not have Bugzilla accounts?
Click to read 1606 more words