You are viewing fish37

http://debedb.livejournal.com as a geek [entries|archive|friends|userinfo]
fish37

[ website | My Website ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

(no subject) [Jun. 19th, 2007|12:02 pm]
[Tags|]

http://debedb.livejournal.com/166223.html
link5 comments|post comment

Moving [Feb. 12th, 2007|09:50 pm]
[Tags|, ]

Ok, I am moving this to debedb.blogspot.com.

Insert your own SLATFATF joke here.

link4 comments|post comment

Overstream [Dec. 18th, 2006|05:11 pm]
[Tags|, , ]

http://www.overstream.net/view.php?oid=iti3u3u3nficnurwl8ep

(Original via kto_zdes, subtitles by meshko powered by Overstream).

link6 comments|post comment

Silly Flex trick of the day [Dec. 1st, 2006|12:52 am]
[Tags|, ]

Since "only top-level components in the application can have context menus", how would one make a different ContextMenu for every type of item in a tree? In particular, I want tree leaves to have different menu items enabled than the branches; e.g., the leaves should have "Properties" menu enabled, and the "Create new" menu disabled, and vice versa for the branches. Mac Martine mentions using rollovers, which is cute, but it looks like a more robust way is to use MOUSE_OVER (yeah, I tried both).

To do this, use the following TreeItemRenderer in the tree in question (obviously, you can choose to add/remove things from the ContextMenu.customItems rather than enabling/disabling them...):

    public class ServerTreeRenderer extends TreeItemRenderer {

    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
        super.updateDisplayList(unscaledWidth, unscaledHeight);
        if(super.data) {
            if (TreeListData(super.listData)) {
                    leaf:Boolean = !TreeListData(super.listData).hasChildren ;
                    super.label.addEventListener(
                                 MouseEvent.MOUSE_OVER, 
                                 function(evt:MouseEvent):void {
                                       // This will disable all items in my context menu (it's declared somewhere 
                                       // else, this is not a TreeItemRenderer method, duh...
                                       disableAll();
                                       if (leaf) {
                                           // propertiesItem is a ContextMenuItem...
                                           propertiesItem.enabled = true;
                                       } else {
                                           contextMenuContainer.createNewItem.enabled = true;
                                       }
[...]

All of this is in anticipation of a promised exegesis on how a custom ContextMenu works anyway (I have no time for this at the moment), but works for now...

P.S. I just like the word "exegesis". The more exegeses, the merrier...

linkpost comment

(no subject) [Oct. 19th, 2006|02:33 pm]
[Tags|, , , , , ]

Am I hopelessly confused, but can't "APIs to facilitate sharing connections between [AJAX] frameworks and components" can already be done, at least for Mozilla, using XPCom (which would also put some end to the endless stream of "How do I do synchronous XmlHTTPRequests?" questions "and Don't!" answers)...
link5 comments|post comment

That's it, done... [Oct. 18th, 2006|12:24 am]
[Tags|, , , , ]

                        That's it, done!
                                Bassem (Max) Jamaleddine

Read more...Collapse )

link3 comments|post comment

It's Friday... [Oct. 13th, 2006|06:49 pm]
[Tags|, , , , ]

linkpost comment

Evaluating expressions in PyDev (Eclipse plug-in for Python) [Oct. 11th, 2006|12:51 am]
[Tags|, , , ]

I use PyDev because, probably like many, I am used to Eclipse for Java development. What I found useful is highlighting a snippet (expression) in a debug session and doing Ctrl+Shift+D to evaluate it, and I miss this in PyDev. A crude workaround is to add this expression to Watch list, but that grows the Watch list and is not convenient: I not only have to do right-click Watch and then look in the Watch list, but also may need to scroll that list, and remove things, etc. That's not what I am used to. So I threw together a crude implementation of it.Read more...Collapse )
link1 comment|post comment

How to waste a weekend [Sep. 23rd, 2006|09:57 pm]
[Tags|, , ]

I spent half of Friday tracking down a GWT problem that caused problems in both Opera and IE. By trial and error I kind of isolated it to my use of syntactic sugar (yeah, I know...) Then I spent most of Saturday trying to come up with a pithy reproducible case. Here it is (posted to http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/ae307a25041f3a7e/, reproducing here for my own reference): Read more...Collapse )

Now, should I spend Sunday trying to actually figure this out?

link9 comments|post comment

(no subject) [Sep. 22nd, 2006|11:16 pm]
[Tags|]

Boo-hoo! You had me, and then you lost me!
Frank Sinatra

При чем тут голубь?

Репортаж с Первых Весенних Олимпийских Игр

Yeah, yeah, we do want to "Just say 'No' to XML". Amen. And +1 to Mr.Holub for noting that "...many so-called programmers just don’t know how to build a compiler. I really don’t have much patience for this sort of thing." But it's all downhill from there:

  • -0.1 for describing Ant as a "scripting language" (it really is declarative...)

  • -0.4 for picking on Ant, of all things, in the first place. Some people can write a compiler and still manage to subject "every one of [their] users to many hours of needless grappling with", oh, I don't know... make???

  • -0.5 for plugging his book at the end

  • -10 for doing the above with an innocent "By the way". (+10 if this "innocence" is tongue-in-cheek, Lt.Columbo-"Oh, and just one more thing"-like. But "architects, consultants and instructors in C/C++, Java and OO design" don't do this kind of subtlety.)

In all, Mr.Holub is 10 in the hole for this round...

A classic case of how a perfectly defensible thesis is ruined by the examples...

link1 comment|post comment

navigation
[ viewing | most recent entries ]
[ go | earlier ]