tjduavis.JourneyMan

weblog dedicated to software development, philosophy, and theology


Redux

I’ve always seem to have many goals  – sometimes too much for my own good. Professional goals are just one set of categories that I’ve seem to continually define and classify.

Restarting this blog, which has its inception in my senior college years, represents a start of the goals that I look or hope to achieve. Some examples include establishing my software development toolkit which allows me to learn, explore and practice industry trends and professional techniques. This toolkit or libraries will contain “kitchen sink” or “hello world” samples which will showcase and re-enforce my understanding and skill. The other would be the journey and growth that comes with contributing to software projects of all kind – open source, work related, or other personal start up ambitions.

The blog will, although is meant to be professionally related, will contain an underlying theme of philosophy and theology as wisdom and the knowledge and understanding of God is imperative in my professional work.  Christ has and continues to become the foundation to not only my personal but professional development.

I’ll end with this reference when studying the topic of God’s purpose vocation at my Bible Study group last year with my beloved local church. The study material used was Timothy Keller’s Every Good Endeavour. Keller’s analogy of Tolkien’s short story the Leaf by Niggle impacted me about the natural struggle of vocational goals, purpose, and longings both in dancing between vanity and virtue.

The Bible teems with wisdom, resources, and hope for anyone who
is learning to work, looking for work, trying to work, or going to
work. And when we say that the Christian Scriptures “give us hope”
for work, we at once acknowledge both how deeply frustrating and
difficult work can be and how profound the spiritual hope must be
if we are going to face the challenge of pursuing vocation in this
world. I know of no more provocative witness to this hope than the
overlooked little story by J.R.R. Tolkien “Leaf by Niggle.”

Introduction, Every Good Endevaor – Timothy Keller


Leave a comment

Tagging is Hot! Increased motivation to deliver amazing work!

Just took a break from my studying (3/6 exams left to go!) and got some feedback from the Firefox community of my work:

Kar(In reply to comment #21)
> Timothy, thanks for the reply. I am of the opinion that getting this patch in
> for FF3 is very important for tagging and places intergration plus useability.
> People really are not going to tag 1000+ bookmarks one by one. Do you think you
> will be able to get a patch working for final?
> 

Yes, I understand the concerns in regards to usability and I think this would
provide value to the great improvements of Places.

I believe I can deliver a working patch for final. I am planning to work on it
again this weekend. I am just busy with doing away with exams and all right
now. By next Sat I should be confident to deliver.

DPS911/909 OSD/600/900 – You never know when and who values your hard work!

Keep up the motivation to deliver amazing work!


Leave a comment

And the plot thickens!

A duplicate bug has been identified with my current work in progress (WIP) bug: multi-edit. A user within the community requested for the ctrl-a key stroke to be used in order to edit multiple tags. At first I initally thought my patch incorpated key stroke since the changes that I made to enhance and develop this bug did not have impact on the programmability of the key strokes. However upon further investigation and testing I have identified a problem which needs to be resolved.

– ctrl+a within the tag folder, causes unexpected results: the bookmarks looses their tags.
– standard multiple select key stokes — ctrl+click and ctrl+shift + click comibnations, also causes unexpected results.
– the key stroke, ctrl+a works with regular folders (essentially, non-tags subfolders).

STR:
– tag a set of bookmarks with the value of “a”.
– click the “a” tag subfolder.
– enter “, b” to include a new tag.
– select the “search bookmarks” text box to update the tags (ie. trigger the onblur event)

Results: The bookmarks within the “a” tag subfolder disappears. The bookmark location within the regular folders remain the same.


Leave a comment

Demo #2 – Unit Testing

For Demo #2 the only progress I made was fixing the pop-up bookmark editor and assertion problem. It was kind of discouraging to only have this much progress, but nonetheless I’m taking this opportunity to be more self-aware in my unit testing skills.

System enhancements are difficult to perform testing especially if there is no established unit testing framework. It can be very challenging to manage all impacts made especially if you are unfamiliar with the given code base. But nonetheless, reading and understanding all these impacts is essential in order to properly take the necessary actions.

It’s really a privilege to be in school and have the opportunity to refine your skills and knowledge within a luxurious set of deadlines. For the most part, in the real world deadlines really mean ASAP…Well thats all for now. I’m going to keep you guys posted on my self-learning (or re-learning) and hopefully share more of my experience and lessons learned.


Leave a comment

Demo #1 – Places API BugFixing Project

This blog post seeks to provide an update of my DPS911 project: Places API BugFixing Project. This post also provides a storyboard style description of my progress.

Multi Edit or Bug 412002 -should be able to edit tags for multiple bookmarks at the same time, is the current active bug that I am working on. The official bug title explains what the bug hopes to achieve.

places-api-demo11.jpg
Figure 1 – Firefox 3: Places Bookmarks
The new Firefox 3 contains a significant amount of improvements and changes. One change that I want to highlight is the edit bookmark panel. In the FF3 source it is called editBookmarksOverlay.xul. The above link is showing my bookmarks items in the Bookmarks Menu folder.


places-api-demo12.jpg

Figure 2 – Bookmark Item Selected
When a bookmark item is selected the edit bookmark overlay panel loads text boxes that allow for bookmark attributes to be updated.

places-api-demo13.jpg
Figure 3 – Multi-Bookmarks Selected
When a user selects more than one bookmark item, either by using a ctrl+[mouse click] or shift+[mouse click]. The bookmark edit overlay panel loads only the ability to update the Tags bookmark attribute.

places-api-demo14.jpg
Figure 4 – Updated Tags
Here you can see that I have updated the tags from the bookmark items selected in Figure 4. I included the tag “sports” for the NBA.com and Raptors.com bookmark item. One of the ways the update tag is triggered, is when anytime the textbox focus of the Tags bookmark attribute field is removed. The textbox focus refers to the event when the cursor is placed and exists within a given textbox.

There are problems with a conflicting event. An event triggers a function to change the edit bookmark panel every time a bookmark item is selected. In my current release I have provided a hack that seeks to ensure that the update tag function is called before the algorithm changes the edit bookmark panel. This hack requires more testing as I have noticed inconsistent results.

places-api-demo15.jpg
Figure 5 – Related Problems 1
The first related problem that I have identified with my patch is with the Bookmarks pop-up editor which is triggered every time a Ctrl + k is issued within the browser. The editor is suppose to be more compressed and the “Folder:” field should contain a bookmarks folder location, like Bookmarks Menu or Unfiled Bookmarks.

places-api-demo16.jpg
Figure 6 – Related Problem 2
Continued from the previous Figure, when a user selects the drop down button from the “Folder:” field an Assertion Failure is issued.


Leave a comment

Mike Shaver, Mozilla, Open Source

Over the last week, Mike Shaver Co-Founder of Mozilla came into class to talk about Mozilla, our student project work here at Seneca and other related open source topics.

First and foremost this was my first attendance of an in-class Mozilla guest speaker session. During DPS909 – Topics in Open Source Development, I was working full-time at RBC GTO for my extended co-op term so therefore I was unable to attend the all star line up. I still find it amazing and a great privilege that Mozilla / Firefox developers and full time workers would come in and interact with students. This is a very encouraging experience and makes me proud of what Seneca and their staff are doing for their computer science program.

During the start of the session, we had a round table discussion where we had an opportunity to introduce ourselves and to talk about our current project. It was very fascinating to actually put the IRC names / projects to the student faces. After the round table discussion we had the opportunity to ask Shaver questions.

The most interesting question was how Mozilla and other open source model their finance. One of their financing opportunities comes from Google, where the a contractual relationship is based on the integrated web search tool (when you press control+k, the cursor will focuses on it). Despite other details mentioned, the striking thing that came out was that the deal was motivated from a growing amount of Firefox users, using Google as their main search engine. I found it very impressive that Mozilla captured business opportunities while trying to keep their services and products community centric.

The community centric theme, later returned from a discussion related to forking. Forking is a term used to describe software that is based on another piece of software – in terms of source code and package but has been modified to be distinct. Examples are Iceweasel and Flock forking Firefox.  During the discussion, David Humphrey shared his open source project experience. Humphrey and Chris Tyler (I believe he is also working on this Project or is at least a major contributor) are attempting to package a Mozilla Development Kit on DVD for future students. This kit comes with everything a student needs to do Mozilla Development. Humphrey informed us about his failed attempts to get help and support from the Visual Studio Team so that their tools could be included into the kit. Essentially, the problem with the Visual Studio Team was over licensing concerns and other related issues.

The point that I got out if it was that with the open source model, the path for innovation is much easier which means the community has the advantage. This reminded me of Bob Young’s discussion over this years FSOSS and how the open source model benefits products and services that reaches out to a large community or that it contains a community centric theme…

So right now I am hoping and praying that the Open Office community becomes bigger and better so that their product line catches up to and increase in quality over MS Office because right now the MS Office market and software is kicking butt!


Leave a comment

MXR, A DPS911 student’s best friend

I’m loving MXR more and more! I think I’m getting more comfortable with this tool and so I think I’ll raise the bar just a little bit for myself and aim to provide both the last two features that Alex Faaborg suggested for my release 0.6. I’m also planning to clean my code and include the comments and feedback that Dietrich provided.

Here are the ways I think we should consider exposing the ability to tag

multiple pages at the same time:Adding tags:

-multiple selection, editing the tag field in the properties pane
-multiple selection, drag operation to the tag in the left pane
-multiple selection, copy and paste to a tag folder

The one that is fascinating and challenging about developing bug fixes is that you are forced not to program for yourself which again is one key lesson learned in Barb’s Systems classes -my own personal opinion. The job is to take something that has been created and updated by numerous people, use all that and creatively attempt to apply your solution making sure that it not only works but its cohesive with the entire application / system… that’s why I agree with my Stock Broker neighbor’s perspective on computer science: “Computer science? I thought that’s more of a an art than a science…”

Lesson Learned

A lesson learned based on my previous patch thats worth sharing to new mozilla code contributors is when submitting prototype patches –that is code thats not ready to be reviewed for checkin into the source, Firefox full time engineers prefer the following:

> So basically you want me to clean up the code? So in the future when I
> submit prototype code I will just attach the file but not assign it for
> review? The assign for review is something more formal? That's what I wanted
> to talk to you about.

here's how i do it:

1. upload "WIP" (work in progress) patches, no review request, to save
my work, and for drive-by reviews of the approach
2. once you think a patch is ready to be added to the product, ask for review

Progress notes on release 0.6

My initial search for a solution to release 0.6 and some results that stood out and I’m going to further investigate. I just want to describe and share what and how I searched for a solution within MXR.

Used “drag and drop” as a value for “Text Search” field.

/browser/base/content/browser-places.js,

* line 740 — * Drag and Drop handling specifically for the Bookmarks Menu item in the

/browser/components/places/content/controller.js,

* line 1508 — * Handles drag and drop operations for views. Note that this is view agnostic!

Used “drag and drop” as a value for “Search for” field and filtered the “in files matching” field to query anything with a value of “places”. The filtering by file name (“in files match”) happens when you initially perform a “Text Search” in http://mxr.mozilla.org/firefox/.

/browser/components/places/content/controller.js,

* line 115 — case “cmd_paste”:
* line 116 — return this._canInsert() && this._isClipboardDataPasteable();
* line 189 — case “cmd_paste”:
* line 215 — case “cmd_paste”:
* line 216 — this.paste();
* line 342 — * Looks at the data on the clipboard to see if it is paste-able.
* line 343 — * Paste-able data is:
* line 349 — _isClipboardDataPasteable: function PC__isClipboardDataPasteable() {
* line 351 — // pasteable, with no need to unwrap all the nodes.
* line 1138 — * Paste Bookmarks and Folders from the clipboard
* line 1140 — paste: function PC_paste() {
* line 1171 — * Gets a list of transactions to perform the paste of specific types.
* line 1173 — * The types of data to form paste transactions for
* line 1174 — * @returns An array of transactions that perform the paste.
* line 1208 — // Get transactions to paste any folders, separators or links that might
* line 1213 — var txn = PlacesUtils.ptm.aggregateTransactions(“Paste”, transactions);
* line 1216 — // select the pasted items, they should be consecutive

/browser/components/places/content/utils.js,

* line 825 — * Constructs a Transaction for the drop or paste of a blob of data into
* line 828 — * The unwrapped data blob of dropped or pasted data.
* line 832 — * The container the data was dropped or pasted into

Follow

Get every new post delivered to your Inbox.